package com.dt76.smallloanbackendservice.service.xiaohao.impl;

import com.dt76.smallloanbackendservice.mapper.xiaohao.ContractMapper;
import com.dt76.smallloanbackendservice.pojo.xiaohao.Contract;
import com.dt76.smallloanbackendservice.service.xiaohao.ContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ContractServiceImpl implements ContractService {

    @Autowired
    private ContractMapper contractMapper;

    @Override
    public int addContract(Contract contract) {
        contractMapper.addContract(contract);
        return (int) contract.getCId();
    }
}
